import request from "@/utils/request";


//删除报名接口
export function deleteActivity(id) {
  return request({
    url: `/wlxz/stupublic/${id}`,
    method: 'delete',
  })
}


//报名活动接口
export function joinActivity(data) {
  console.log("以下是数据")
  console.log(data)
  return request({
    url: '/wlxz/stupublic',
    method: 'post',
    data:{
    "activityId": data.activityId,
    "participantLimit": data.participantLimit,
    "name": data.name,
    "snumber": data.snumber
    }
  })
}